package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;

import java.util.List;

/**
 * @author 刘付磊
 * @date 2021/11/18 0018
 */
public interface CommentApi {

    //分页查询
    Integer save(Comment comment1);
    //发布评论并获取评论数量
    List<Comment> findComments(Integer page, Integer pagesize, String movementId, CommentType comment);
    //判断comment数据是否存在
    Boolean haveCovement(String movementId, Long userId, CommentType like);

    //删除互动Comment数据
    Integer remove(Comment comment);
}
